package com.xkcoding.orm.mybatis.plus.generator.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xkcoding.orm.mybatis.plus.generator.entity.User;
import com.xkcoding.orm.mybatis.plus.generator.mapper.provider.UserSelectProvider;
import dto.QueryDto;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Component;

/**
 * <p>
 * UserMapper
 * </p>
 *
 * @author yangkai.shen
 * @date Created in 2018-11-08 16:57
 */
@Component
public interface UserMapper extends BaseMapper<User> {
    @SelectProvider(type = UserSelectProvider.class,method = "queryByCondition")
    User queryByCondition(@Param("queryDto") QueryDto queryDto);
}
